Skip to content

[codex] Automate Dependabot maintenance#9

Merged
Pigbibi merged 2 commits into
mainfrom
codex/dependabot-automerge-20260622181842
Jun 22, 2026
Merged

[codex] Automate Dependabot maintenance#9
Pigbibi merged 2 commits into
mainfrom
codex/dependabot-automerge-20260622181842

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add weekly Dependabot updates for Python packages and GitHub Actions
  • ignore semver-major updates so major releases still require review
  • add a CI-gated workflow that automatically merges eligible Dependabot PRs after checks pass

Validation

  • configuration-only change; CI will validate the workflow files on this PR

@Pigbibi Pigbibi merged commit 01a4903 into main Jun 22, 2026
2 checks passed
@Pigbibi Pigbibi deleted the codex/dependabot-automerge-20260622181842 branch June 22, 2026 10:20

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1f6c6de1ad

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

is_major = "update-type: version-update:semver-major" in body
dependabot_authors = {"dependabot[bot]", "app/dependabot"}
is_dependabot = author in dependabot_authors and "dependencies" in labels
should_merge = is_dependabot and not pr.get("isDraft") and not is_major

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Verify the tested head before merging

When Dependabot pushes a new commit to the same branch after the CI run that triggered this workflow, this guard still marks the PR mergeable because it only checks author/labels/body and never compares github.event.workflow_run.head_sha to the PR's current head SHA, such as headRefOid. The final gh pr merge then merges whatever commit is currently at the branch tip, so a stale successful CI run can merge an untested dependency update.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant